{if $logged ne null}
	Welcome back, {$logged}.<br>
	You have {if $num_offlines ne 0}<a href="#" onclick="window.open('/user/offlines.php', 'STIMPyOfflines', 'dependent,directories=0,hotkeys=0,menubar=0,scrollbars=1,resizeable=0,titlebar=0,toolbar=0'); return false;">{/if}<span id="offlines">{$num_offlines} Offline{if $num_offlines ne 1}s{/if}</span>{if $num_offlines ne 0}</a>{/if}<br>
	{$num_contacts} contact{if $num_contacts ne 1}s{/if} are currently online.<br>
{else}
	<form method="post" name="frmLogin" action="login.php">
		User Name<br />
		<input type="text" name="username" /><br />
		Password<br />
		<input name="userpass" type="password" /><br />
		<input type="submit" name="submit" value="Login" />
	</form>
	Or <a href="profile.php?action=add">Register</a> to become a user.<br />
	Forgot my password!
{/if}